<?php 
class CTestimonial extends CBaseTestimonial {
	
	protected $m_strLoginName;
	
	public function __construct() {
		parent::__construct();
		return true;
	}	
	
	/**************************************
	 ************* SET FUNCTIONS ***********
	**************************************/
	
	public function setLoginName( $strLoginName ) {
		$this->m_strLoginName = $strLoginName;
	}
	
	/**************************************
	 ************* GET FUNCTIONS ***********
	**************************************/
	
	public function getLoginName() {
		return $this->m_strLoginName;
	}
	
	/**************************************
	************* DATABASE FUNCTIONS ******
	**************************************/
	
	public function updateTestimonialsActionById( $strAction, $arrintTestimonialsId, $objDatabase ) {
		
		$strSql = 'UPDATE 
						`testimonials`
						
					SET
						`is_active` = ' . $strAction . '
					WHERE
						`id` IN(' . implode( ',', $arrintTestimonialsId ) . ')';
		
		return parent::updateRecord( $strSql, $objDatabase );		
	}
	
	public function deleteTestimonialsById( $arrintTestimonialsId, $objDatabase ) {
	
		$strSql = ' DELETE FROM `testimonials` WHERE `id` IN(' . implode( ',', $arrintTestimonialsId ) . ')';
		return parent::deleteRecord( $strSql, $objDatabase );	
	}
}

?>